#ifndef __LG_DOOR_DET_H
#define __LG_DOOR_DET_H

#include "delay.h"
#include "gpio.h"

#define DOOR_DET_PIN          GPIO_PTC3
#define DOOR_DET_IN           PTC3_IN

typedef enum
{
   DOOR_UNKNOW,
   DOOR_OPEN,
   DOOR_CLOSE,
}DOOR_TYPE_T;


void lgInitDoorDetect();

DOOR_TYPE_T   sys_door_type();


#endif

